import request from '@/utils/request'

// 查询分类项列表
export function listClassItem(query) {
  return request({
    url: '/article/classItem/list',
    method: 'get',
    params: query
  })
}

// 查询分类项详细
export function getClassItem(id) {
  return request({
    url: '/article/classItem/' + id,
    method: 'get'
  })
}

// 新增分类项
export function addClassItem(data) {
  return request({
    url: '/article/classItem',
    method: 'post',
    data: data
  })
}

// 修改分类项
export function updateClassItem(data) {
  return request({
    url: '/article/classItem',
    method: 'put',
    data: data
  })
}

// 删除分类项
export function delClassItem(id) {
  return request({
    url: '/article/classItem/' + id,
    method: 'delete'
  })
}
